<?php
namespace BP\Port;
class Current {
	public static $Session;	// Hashtable
	public static function SetSession ($key, $Value) // [Object key, Object Value]
	{
		if (self::$Session->containsKey($key))
		{
			self::$Session->remove($key);
		}
		self::$Session->put($key, $Value);
	}
	public static function GetSessionStr ($key, $isNullAsValue) // [Object key, String isNullAsValue]
	{
		$val = self::$Session->get($key);
		if (($val == NULL))
		{
			return $isNullAsValue;
		}
		return ( ($val instanceof String) ? $val : NULL );
	}
}
?>
